#ifndef ERRORS_H
#define ERRORS_H

// O erro será salvo na FLASH e pode ser consultados via CLI.
// Começar do valor 100 porque abaixo disso são reservados para erros do sistema
#define errOP 				100 // Sinaliza erro de operação do relé desconhecido
#define errCRC_FLASH 		100 // Sinaliza erro CRC dos parametros salvos na FLASH

#define errOFFSET1			102
#define errOFFSET2			103
#define errOFFSET3			104
#define errOFFSET4			105
#define errDELAY_INIT		106

#define errOP_FLASH			107
#define errSEN1				108
#define errIRL				109

#define errDEFROST_SP		110
#define errDEFROST_DINI		111
#define errDEFROST_DTYP		112

#define errFAN_SP			113
#define errFAN_SPST			114
#define errFAN_SPDL			115
#define errFAN_TIRG			116
#define errFAN_DRTI			117

#define errAUX_SURL			118

#define errTIMER_SET1		119
#define errTIMER_SET2		120
#define errTIMER_SET3		121
#define errTIMER_SET4		122

#define errTIMERIF_SP		123
#define errTIMERIF_TLH		124
#define errTIMERIF_TLL		125
#define errTIMERIF_LO		126
#define errTIMERIF_HI		127
#define errTIMERIF_DT		128
#define errTIMERIF_TTYPE	128
#define errTIMERIF_DLY		129
#define errTIMERIF_TIRO		130
#define errTIMERIF_TLRS		131
#define errTIMERIF_PERS		132
#define errTIMERIF_SET1		133
#define errTIMERIF_SET2		134
#define errTIMERIF_SET3		135
#define errTIMERIF_SET4		136

#define errHEATER_SEN2			161
#define errHEATER_SP		137
#define errHEATER_TL		138
#define errHEATER_TH		139
#define errHEATER_DON		140
#define errHEATER_DOFF		141
#define errHEATER_DT		142
#define errHEATER_DTR		143
#define errHEATER_FTUBE		144

#define errCOLDHOT_SP		145
#define errCOLDHOT_TLH		146
#define errCOLDHOT_TLL		147
#define errCOLDHOT_LO		148
#define errCOLDHOT_HI		149
#define errCOLDHOT_DT		150
#define errCOLDHOT_DLY		151
#define errCOLDHOT_TIRO		152
#define errCOLDHOT_TLRS		153
#define errCOLDHOT_PERS		154

#define errALARM_TLH		155
#define errALARM_TLL		156
#define errALARM_DLYL		157
#define errALARM_DLYH		158
#define errALARM_TAON		159
#define errALARM_TAOF		160

#endif

